package com.sinoglobal.ningxia.thread;

import android.os.AsyncTask;

import com.sinoglobal.ningxia.R;
import com.sinoglobal.ningxia.beans.BillVo;
import com.sinoglobal.ningxia.downdata.imp.RemoteImpl;

/**
 * @author qiwx
 * @createdate 2014-7-7 下午4:34:04
 * @Description:
 */
public abstract class PlayBillTask extends AsyncTask<Integer, Void, BillVo> {

	/**
	 * @author qiwx
	 * @createdate 2014-7-7 下午4:36:01
	 * @Description:
	 * @type
	 * @throws Exception
	 * @parameters
	 */
	@Override
	protected BillVo doInBackground(Integer... params) {
		BillVo vo = null;

		try {
			vo = RemoteImpl.getInstance().getPlayBill(params[0]);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return vo;
	}

	/**
	 * @author qiwx
	 * @createdate 2014-7-7 下午4:36:28
	 * @Description:
	 * @type
	 * @throws Exception
	 * @parameters
	 */
	@Override
	protected void onPreExecute() {
		//Auto-generated method stub
		super.onPreExecute();
	}

	/**
	 * @author qiwx
	 * @createdate 2014-7-7 下午4:36:28
	 * @Description:
	 * @type
	 * @throws Exception
	 * @parameters
	 */
	@Override
	protected void onPostExecute(BillVo result) {
		//Auto-generated method stub
		super.onPostExecute(result);
		after(result);
	}

	public abstract void after(BillVo vo);

}
